package com.ruoyi.alarmmanagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.alarmmanagement.domain.DmWarn;
import com.ruoyi.alarmmanagement.entity.WXAlarm;
import com.ruoyi.alarmmanagement.entity.WXAlarmReqVO;

import java.util.List;

/**
 * 告警Mapper接口
 *
 * @author ruoyi
 * @date 2023-09-06
 */
public interface DmWarnMapper extends BaseMapper<DmWarn> {
    /**
     * 查询告警
     *
     * @param ID 告警主键
     * @return 告警
     */
    public DmWarn selectDmWarnByID(Long ID);

    /**
     * 查询告警列表
     *
     * @param dmWarn 告警
     * @return 告警集合
     */
    public List<DmWarn> selectDmWarnListXb(DmWarn dmWarn);

    public List<DmWarn> selectDmWarnListDb(DmWarn dmWarn);

    /**
     * 新增告警
     *
     * @param dmWarn 告警
     * @return 结果
     */
    public int insertDmWarn(DmWarn dmWarn);

    /**
     * 修改告警
     *
     * @param dmWarn 告警
     * @return 结果
     */
    public int updateDmWarn(DmWarn dmWarn);

    /**
     * 删除告警
     *
     * @param ID 告警主键
     * @return 结果
     */
    public int deleteDmWarnByID(Long ID);

    /**
     * 批量删除告警
     *
     * @param IDs 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDmWarnByIDs(Long[] IDs);

    List<WXAlarm> GetAlarmList(WXAlarmReqVO alarmReqVO);

    List<DmWarn> selectWarnInBigScreen1(DmWarn warn);
    List<DmWarn> selectWarnInBigScreen2(DmWarn warn);
}
